<template>
	<view>
		<cu-custom bgColor="bg-gradual-pink" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">仓库</block>
		</cu-custom>
		<view>
			<view class="grid col-1 padding-sm">
				<view class="padding-sm" v-for="(item,index) in list" :key="index">
					<view class="padding radius shadow-blur" :class="item.color">
						<view class="text-lg">{{item.title}}</view>
						<view class="cuIcon-warnfill margin-top-sm">库存：100000</view>
						<view class="margin-top-sm text-abc text-sm">
							<text class="cuIcon-locationfill">{{item.city}}</text>
							<text class="cuIcon-infofill margin-left-sm">{{item.type_name}}</text>
							</view>
					</view>
				</view>

			</view>
		</view>
	</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				list:[],
			}
		},
		onLoad() {
			this.warehouse()
		},
		methods:{
			warehouse: async function(){
				let result = await this.$api.warehouse({});
				if(result.code == 1){
					this.list = result.data
				}
			}
		}
	}
</script>

<style>
</style>
